// 登录相关接口
import https from "../request.js";

let apiAddress = {};
// 获取所有地址
apiAddress.getAddressList = (data) => {
  return https.get("/address/get-list", data);
};
// 获取默认地址
apiAddress.getDefaultAddress = (data) => {
  return https.get("/address/get-default", data);
};
// 新增地址
apiAddress.addOredmitAddress = (data) => {
  return https.post("/address/save", data);
};
// 删除地址
apiAddress.deleteAddress = (data) => {
  return https.post("/address/delete", data);
};
// 提交邮寄地址
apiAddress.submitPostAddress = (data) => {
  return https.post("/user-box/set-address", data);
};

export default apiAddress;
